<?php {?>

		<?php foreach($hatran as $k => $v) {?>
			<?php if($v->parent_id == 0){ ?>
				<?php if($k==0) {
					echo "<li>";
				} else {
					echo "</ul></li><li>";
				}?>
				<a href="<?php echo base_url();?>menu/<?php echo $v->name_ascii;?>"><?php echo $v->name;?></a><ul class="ul-main bg-gadien">
			<?php } else {?>
					<li>
						<a href="#"><?php echo $v->name;?></a>
					</li>
	
			<?php }?>
		<?php }?>

<?php }?>